package com.jy.api.vo.web;

import com.jy.api.domain.Order;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/12/6.
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MemberVo {


    private String id;
    private String code;
    private String name;
    /**
     * 平台余额
     */
    private double amount = 0;
    /**
     * 加入平台时间
     */
    private Date enrollmentTime = new Date();

    /**
     * 平台积分
     */
    private long points = 0;

    private String mobile;

    /**
     * 头像
     */
    private String headImgUrl;

    private Date birthday;

    private MemberAccount memberAccount;

    private Order order;

    /**
     * 店铺账号信息
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class MemberAccount {

        private double totalAmount = 0;

        private long points = 0;
    }
}
